﻿using System;
using System.Collections.Generic;
using System.Text;

//using libSecuritySystem;
using libReadWrite;
using libCommonClass;
using ThresholdModeling;

namespace TTServer.Messages
{
    public class NMSAuthentificationRequestMessage: TTMessage
    {
        private MemberInfo _memInfo;

        public MemberInfo MemInfo
        {
            get { return _memInfo; }
            set { _memInfo = value; }
        }

        public NMSAuthentificationRequestMessage()
        {

        }

        public override void ReadMessage(BigEndianReader sr)
        {
            //long M = sr.ReadLong();
            int m = sr.ReadInt32();
            int I = sr.ReadInt32();
            _memInfo = new MemberInfo(m, I);
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return new NMSAuthentificationRequestMessage();
        }

        public override int GetMessageID()
        {
            return MessageKind.NMS_AUTHENTICATION_REQUEST;
        }

        public override string GetMessageName()
        {
            return "NMSAuthentificationRequest";
        }
    }
}
